import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 商品
 */
export function preAddOrder(params) {
    return request.globalRequest(apis.preAddOrder, 'POST', params)
}
export function getPlatFormList(params) {
    return request.globalRequest(apis.getPlatFormList, 'POST', params)
}
export function addOrder(params) {
    return request.globalRequest(apis.addOrder, 'POST', params)
}
export function delOrder(params) {
    return request.globalRequest(apis.delOrder, 'POST', params)
}
export function getOrder(params) {
    return request.globalRequest(apis.getOrder, 'POST', params)
}
export function getAllOrder(params) {
    return request.globalRequest(apis.getAllOrder, 'POST', params)
}
export function updateOrder(params) {
    return request.globalRequest(apis.updateOrder, 'POST', params)
}
export function bindPurchase(params) {
    return request.globalRequest(apis.bindPurchase, 'POST', params)
}
export function changeStatus(params) {
    return request.globalRequest(apis.changeStatus, 'POST', params)
}
export function cancelOrder(params) {
    return request.globalRequest(apis.cancelOrder, 'POST', params)
}
export function preOrderCancel(params) {
    return request.globalRequest(apis.preOrderCancel, 'POST', params)
}
export function returnedStatus(params) {
    return request.globalRequest(apis.returnedStatus, 'POST', params)
}
export function invoiceStatus(params) {
    return request.globalRequest(apis.invoiceStatus, 'POST', params)
}
export function getOrderForTable(params) {
    return request.globalRequest(apis.getOrderForTable, 'POST', params)
}
export function orderSearchByNumbers(params) {
    return request.globalRequest(apis.orderSearchByNumbers, 'POST', params)
}
export function orderReturnBatch(params) {
    return request.globalRequest(apis.orderReturnBatch, 'POST', params)
}


export default {
	preAddOrder,
	getPlatFormList,
	addOrder,
	delOrder,
	getOrder,
	getAllOrder,
	bindPurchase,
	updateOrder,
	cancelOrder,
	preOrderCancel,
	returnedStatus,
	invoiceStatus,
	getOrderForTable,
	orderSearchByNumbers,
	orderReturnBatch,
	changeStatus
}